LassoScript Utility
Basics Browse Detail

[PDF_Doc->Rect]

Tag Link [PDF_Doc->Rect] Category PDF
Type Member Source Available Yes
Support Preferred Version 6.0
Change Updated Data Source Any
Output Type None Security File
Implementation LJAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Description

[PDF_Doc->Rect] draws a rectangle in a page within a [PDF_Doc] variable. Requires a string of points which specify the lower left corner of the rectangle followed by the width and height in points (X, Y, Width, Height). The -Fill parameter can be optionally specified in order to fill the rectangle with color.

An optional fifth parameter creates a rectangle with rounded corners. The parameter should specify the radius of the rounded corners.

Syntax

[$PDF_Doc->(SetColor: 'stroke', 'RGB', 0.0, 0.0, 0.5)]
[$PDF_Doc->(Rect: 90, 90, 20, 30)]

[$PDF_Doc->(SetColor: 'stroke', 'RGB', 0.0, 0.0, 0.5)]
[$PDF_Doc->(SetColor: 'fill', 'RGB', 0.0, .5, 0.0)]
[$PDF_Doc->(Rect: 90, 90, 20, 30, -Fill)]

[$PDF_Doc->(Rect: 90, 90, 20, 30, 5)]
[$PDF_Doc->(Rect: 90, 90, 20, 30, 5, -Fill)]

Parameters

Required Parameters
X, Y, W, H String of points which specify the lower left corner of the rectangle followed by the width and height in points (X, Y, Width, Height).
X, Y, W, H, R String of points which specify the lower left corner of the rounded corner rectangle followed by the width and height in points and the radius for the rounded corners. (X, Y, Width, Height, Radius).
Optional Parameters
-Fill Specifies that the rectangle should be filled with color.

Change Notes

The -Fill parameter was added in 8.1,

The option to created rounded corners was added in Lasso 8.5.5.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Related Tags

Category Tags

Substitution
[PDF_Barcode]
[PDF_Color]
[PDF_Font]
[PDF_Image]
[PDF_List]
[PDF_Read]
[PDF_Table]
[PDF_Text]
Process
[PDF_Serve]
Member
[PDF_Barcode->GenerateChecksum]
[PDF_Barcode->GetBarHeight]
[PDF_Barcode->GetBarMultiplier]
[PDF_Barcode->GetBarWidth]
[PDF_Barcode->GetBaseline]
[PDF_Barcode->GetCode]
[PDF_Barcode->GetFont]
[PDF_Barcode->GetSize]
[PDF_Barcode->GetTextAlignment]
[PDF_Barcode->GetTextSize]
[PDF_Barcode->GetType]
[PDF_Barcode->SetBarHeight]
[PDF_Barcode->SetBarMultiplier]
[PDF_Barcode->SetBarWidth]
[PDF_Barcode->SetBaseline]
[PDF_Barcode->SetCode]
[PDF_Barcode->SetFont]
[PDF_Barcode->SetGenerateChecksum]
[PDF_Barcode->SetShowChecksum]
[PDF_Barcode->SetTextAlignment]
[PDF_Barcode->SetTextSize]
[PDF_Barcode->ShowChecksum]
[PDF_Barcode->ShowCode39StartStop]
[PDF_Barcode->ShowEANGuardBars]
[PDF_Font->GetColor]
[PDF_Font->GetEncoding]
[PDF_Font->GetFace]
[PDF_Font->GetFullFontName]
[PDF_Font->GetPSFontName]
[PDF_Font->GetSize]
[PDF_Font->GetSupportedEncodings]
[PDF_Font->IsTrueType]
[PDF_Font->SetColor]
[PDF_Font->SetEncoding]
[PDF_Font->SetFace]
[PDF_Font->SetSize]
[PDF_Font->SetUnderline]
[PDF_Font->TextWidth]
[PDF_List->Add]
[PDF_Read->AddJavaScript]
[PDF_Read->ExportFDF]
[PDF_Read->FieldNames]
[PDF_Read->FieldType]
[PDF_Read->FieldValue]
[PDF_Read->GetHeaders]
[PDF_Read->ImportFDF]
[PDF_Read->JavaScript]
[PDF_Read->PageCount]
[PDF_Read->PageSize]
[PDF_Read->Save]
[PDF_Read->SetFieldValue]
[PDF_Read->SetPageRange]
[PDF_Table->Add]
[PDF_Table->GetAbsWidth]
[PDF_Table->GetAlignment]
[PDF_Table->GetBorderColor]
[PDF_Table->GetBorderWidth]
[PDF_Table->GetColumnCount]
[PDF_Table->GetPadding]
[PDF_Table->GetRowCount]
[PDF_Table->GetSpacing]
[PDF_Table->Insert]
[PDF_Table->Remove]
[PDF_Table->SetAlignment]
[PDF_Table->SetBorderColor]
[PDF_Table->SetBorderWidth]
[PDF_Table->SetPadding]
[PDF_Table->SetSpacing]
[PDF_Text->Add]